﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SchoolLibrary.Util
{
    public class DateUtil
    {
        public const string DD_MM_YYYY_DOTS_PATERN = "dd.MM.yyyy";

        public static string formatDate(DateTime date, string pattern)
        {
            return String.Format("{0:" + pattern + "}", date);
        }

    }
}
